package Base.ExtendTest;

/*
 * @author 枫城
 * @createTime 2022/9/3 23:04
 * @desc 创建账户
 */
public class AccountTest {
    public static void main(String[] args) {
        Account acct = new Account(1122, 20000, 0.045);

        acct.withdraw(3000);
        System.out.println(acct.getBalance());

        acct.withdraw(2500);
        System.out.println(acct.getBalance());

        acct.deposit(3000);
        System.out.println(acct.getBalance());

        System.out.println(acct.getAnnualInterestRate());



    }
}
